<?php

defined('_JEXEC') or die();

jimport('joomla.application.component.view');

class Easiv2adminViewManageInstances extends JView {
	
	function display($tpl = null) {
		
		$this->addToolbar();
		
		/**
		 * get data from model and assign to view
		 */
		$this->data = $this->get('InstanceInfo');
		
		parent::display($tpl);
	}
	
	function addToolbar() {
		JToolbarHelper::title(JText::_('Manage Joomla! Instances'), 'checkin.png');
		JToolbarHelper::addNewX('manageInstances.gotoAddExistingInstance', 'Add existing J! Instance');
		JToolbarHelper::cancel('manageInstances.deleteInstance', 'Delete selcted instances');
	}
}